package com.hmall.api.clients;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 代理：发送用户服务请求
 */
@FeignClient("user-service")
public interface UserClient {
    @PutMapping("/users/money/deduct") //请求路径得是全路径
    void deductMoney(@RequestParam("pw") String pw, @RequestParam("amount") Integer amount);
}
